import Vue from 'vue'
import App from './App.vue'
import router from './router'//引入路由器
import ElementUI from '@/plugins/ElementUI'
import axios from './network/axios'
import ZKTable from 'vue-table-with-tree-grid'
import Quill from './plugins/vue-quill-editor'
// ElementUI是组件库所以可以部分引入
// import { Button, Select } from 'element-ui';

// Vue.component(Button.name, Button);
// Vue.component(Select.name, Select);
/* 或写为
 * Vue.use(Button)
 * Vue.use(Select)
 */

ElementUI()//引入ElementUI和和自己的全局样式
axios()//引入axios
Quill()

// 关闭生产提示，vue2.x
Vue.config.productionTip = false
Vue.prototype.$bus = new Vue()

Vue.component('tree-table', ZKTable)

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
